package com.seadragon.app.ksr.dao;

import java.util.List;
import java.util.Map;

import com.seadragon.app.ksr.model.Customer;
import com.seadragon.app.ksr.model.Office;
import com.seadragon.app.ksr.model.Review;

public interface ReviewDao {
	List<Review> findByOffice(Office office);
	List<Review> findByOfficeAndReview(Office office, int reviewRating);

	List<Review> findByCustomer(Customer customer);
	List<Review> findByCustomerAndReview(Customer customer, int reviewRating);

	Map<Integer, Long> getStatsByOffice(Office office);
	Review save(Review review);
	void update(Review review);
	long count(Office office);
	List<Review> findAll(int offset, int pageSize);
}
